package com.mydomain.Bodega;

import com.mydomain.Bodega.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("invItemStockList")
public class InvItemStockList extends EntityQuery<InvItemStock> {

	private static final String EJBQL = "select invItemStock from InvItemStock invItemStock";

	private static final String[] RESTRICTIONS = {
			"lower(invItemStock.iteCodigo) like concat(lower(#{invItemStockList.invItemStock.iteCodigo}),'%')",
			"lower(invItemStock.iteDescripcion) like concat(lower(#{invItemStockList.invItemStock.iteDescripcion}),'%')",
			"lower(invItemStock.iteNombre) like concat(lower(#{invItemStockList.invItemStock.iteNombre}),'%')", };

	private InvItemStock invItemStock = new InvItemStock();

	public InvItemStockList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public InvItemStock getInvItemStock() {
		return invItemStock;
	}
}
